<layout name="inner"/>
<empty name="bank_info">
<div class="uk-alert uk-alert-danger">
{$Think.lang.not_bind_bank_info}
<else/>
<div class="uk-alert uk-alert-success">
{$Think.lang.bind_bank_info}
<hr>
<ul class="uk-grid uk-grid-small uk-grid-width-small-1-1  uk-grid-width-medium-1-2 uk-grid-width-large-1-3 uk-text-left" data-uk-grid-margin>
     <li><div class="uk-alert">{$Think.lang.name}:
    {$bank_info.bank_client}</div></li>
     <li><div class="uk-alert">{$Think.lang.bank_name}:
    {$bank_info.bank_name}</div></li>
     <li><div class="uk-alert">{$Think.lang.bank_branch}:
    {$reseller_info.aff_bank_branch}</div></li>	
     <li><div class="uk-alert">{$Think.lang.bank_account}:
    {$bank_info.bank_account|cardHidden=6}</div></li>
     <li><div class="uk-alert">Swift code:
   {$bank_info.bank_swift}</div></li>
</ul>


<p>
<!-- Button trigger modal -->
<button type="button" class="uk-button uk-button-success" data-uk-modal="{target:'#myModal',center:true}">
{$Think.lang.withdraw_now}
</button>
</p>
<!-- Modal -->
<div class="uk-modal" id="myModal">
 <form id="validate_form" class="uk-form"  method="post" action="__CONTROLLER__/process">
    <div class="uk-modal-dialog"> <a class="uk-modal-close uk-close"></a>
        <div class="uk-modal-header">{$Think.lang.withdraw_now}</div>

<table class="uk-table">
	<tr><td width=120>{$Think.lang.balance}</td><td>
	{$merchant_info.mh_balance|number_format="2"}
</td></tr>
	<tr><td>{$Think.lang.available_balance}</td><td>
	{$withdrawBalance|number_format="2"}
</td></tr>
	<tr><td>{$Think.lang.min_withdraw}</td><td>
	{$merchant_info.mh_min_withdraw_amount|number_format="2"}
</td></tr>	
	<tr><td>{$Think.lang.fee}</td><td>
	{$merchant_info.mh_withdraw_fee|number_format="2"}
</td></tr>	

	<tr><td>{$Think.lang.amount}</td><td>
<input type="text" name="wd_money" min="{$merchant_info.mh_min_withdraw_amount}"  required value="" />
</td></tr>
	<tr><td>{$Think.lang.pay_pwd}</td><td>
<input type="password" name="pay_pwd"   required  value="" />
</td></tr>

  </table>
        <div class="uk-modal-footer uk-text-right">
		<button class="uk-button uk-button-danger" type="submit">{$Think.lang.confirm}</button>
		</div>
    </div>
  </form> 
</div>	
</empty>
</div>




          <div class="uk-overflow-container">
            <table class="uk-table uk-table-hover uk-table-striped uk-table-condensed">
              <thead>
                <tr>
                  <th width=180>{$Think.lang.add_time}</th>
				  <th>{$Think.lang.withdraw_amount}</th>
				  <th>{$Think.lang.fees}</th>
				  <th>{$Think.lang.status}</th>
                </tr>
              </thead>
              <tbody>
				  <volist name="list" id="vo">
                <tr>
                  <td>{$vo.wd_date}</td>
				  <td>{$vo.wd_amount}</td>
				  <td>{$vo.wd_fee}</td>
				  <td>{$vo.wd_status|withdraw_status=true}</td>
                </tr>
			</volist>
              </tbody>
            </table>
			{$page}
          </div>
	

